import request from '@/utils/request'


// 注册接口
export const regUser = (username, password, repassword) => {  
    return request({
        url: '/user/reg',
        method: 'POST',
        data: {
            username, 
            password, 
            repassword
        }
    })
}




// 登录接口
export const doLogin = (username, password) => {  
    return request({
        url: '/user/login',
        method: 'POST',
        data: {
            username, 
            password
        }
    })
}